/**
 * @author guocailee
 */
import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/logger'

import modules from './modules'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: modules,
  strict: process.env.NODE_ENV !== 'production',
  plugins: process.env.NODE_ENV !== 'production' ? [createLogger()] : []
})
